//
//  LookjianliCell2.m
//  Ten
//
//  Created by anfuer on 2018/11/16.
//  Copyright © 2018年 xg韦. All rights reserved.
//

#import "LookjianliCell2.h"
#import "WorkCell.h"
@interface LookjianliCell2()
{
    
}
@end
@implementation LookjianliCell2

- (void)awakeFromNib {
    [super awakeFromNib];
    _tbv.separatorColor=[UIColor clearColor];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
+ (instancetype)CellWithTableView:(UITableView *)tableView
{
    static NSString *reuseId = @"LookjianliCell2";
    LookjianliCell2 *cell = [tableView dequeueReusableCellWithIdentifier:reuseId];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"LookjianliCell2" owner:nil options:nil] lastObject];
        
    }
    return cell;
    
}


-(void)Cellinit:(NSDictionary*)dic
{
    
    
}



#pragma mark 返回每组行数
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return  4;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
{

            WorkCell*cell=[WorkCell CellWithTableView:tableView];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
            cell.hidenLine1.hidden=NO;
            cell.hidenLine2.hidden=NO;
            if (indexPath.row==0) {
                cell.hidenLine2.hidden=YES;
                cell.hidenBtno.hidden=NO;
                cell.completion = ^(NSString * _Nonnull timechange) {
                 
                };
                
            }else if (3==indexPath.row)
            {
                cell.hidenLine1.hidden=YES;
            }
            
            return cell;
}


#pragma mark 设置每行高度
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{

    return  [WorkCell FSCellHeightForTableView:tableView indexPath:indexPath cacheKey:@"WorkCell" cellContentViewWidth:0 bottomOffset:0];
}
#pragma mark 点击事件
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

{
  
}

@end
